package com.hzit.hzb.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hzit.hzb.core.pojo.entity.Borrower;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzit.hzb.core.pojo.vo.BorrowerApprovalVO;
import com.hzit.hzb.core.pojo.vo.BorrowerDetailVO;
import com.hzit.hzb.core.pojo.vo.BorrowerVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author hbxfwf
 * @since 2024-08-27
 */
public interface BorrowerService extends IService<Borrower> {

	void saveBorrowerVOByUserId(BorrowerVO vo, Long userId);

	Integer getBorrowerStatus(Long userId);

	IPage<Borrower> getPageList(Long page, Long limit, String keywords);

	BorrowerDetailVO getDetailsById(Long id);

	void approval(BorrowerApprovalVO vo);

	BigDecimal getBorrowAmount(Long userId);

	String getDictNameByDictCodeAndValue(String dictCode, String value);
}
